package com.test.p08composite.example01;

public class Clinet01 {
    public static void main(String[] args) {
        AbstractFile f2,f3,f4,f5;
        Folder f1 = new Folder("myfavorite");
        f2 = new ImageFile("xxxx.jpg");
        f3 = new TextFile("abc.text");

        f1.add(f2);
        f1.add(f3);

        Folder f11 = new Folder("电影");
        f4 = new VidioFile("fff.avi");
        f5 = new VidioFile("xxxx.avi");
        f11.add(f4);
        f11.add(f5);
        f1.add(f11);
        f1.killVirus();
    }
}
